#{extends 'main.html' /}
#{set title:'资源管理' /}


<div class="row">
    #{list resources, as:"resource"}
    <div class="col-md-3  col-sm-4">
        <div class="panel panel-default">
            <div class="panel-heading"><a href="@{Resources.view_resource(resource.id)}">${resource.name?resource.name:"无标题"}</a></div>
            <div class="panel-body">
                <ul class="list-group">
                    <li class="list-group-item">投票数：</li>
                    <li class="list-group-item">关注数：</li>
                    <li class="list-group-item">分类：</li>
                    <li class="list-group-item">创建于：${resource.created_at?.format('yyyy-MM-dd')}</li>
                </ul>
            </div>
        </div>
    </div>
    #{/list}
</div>
